<template>
  <div class="notification-container">
    <p class="time" v-if="message._showTime">{{ message._timeStr }}</p>
    <p class="notification">{{ message.messageContent.digest(message) }}</p>
  </div>
</template>

<script>
import Message from '../../../../wfc/messages/message'

export default {
  name: 'NotificationMessageContentView',
  props: {
    message: {
      type: Message,
      required: true,
    },
  },
  components: {},
}
</script>

<style lang="css" scoped>
.notification-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.notification-container .time {
  margin: 15px auto;
  text-align: center;
  font-size: 10px;
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  padding: 2px 5px;
  border-radius: 100px;
}

.notification-container .notification {
  color: var(--color-black);
  margin: 15px;
  font-size: 12px;
}
</style>
